package top.milkbox.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 帖子点赞表
 * @TableName tb_post_like
 */
@TableName(value ="tb_post_like")
@Data
public class PostLike implements Serializable {
    /**
     * 点赞表主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 外键，哪个用户点的赞
     */
    private Integer userId;

    /**
     * 外键，给哪个帖子点的赞
     */
    private Integer postId;

    /**
     * 点赞时间
     */
    private String time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}